<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%
	String path = request.getContextPath();
%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta name="format-detection" content="telephone=no,email=no,adress=no" />
<META HTTP-EQUIV="luxiaoqing" CONTENT="no-cache">

<link rel="stylesheet"  type="text/css"  href="css/login.css" ><!-- 通用CSS -->
<link rel="stylesheet"  type="text/css"  href="css/business.css" /><!-- 商家CSS -->
<link rel="stylesheet"  type="text/css"  href="css/all.css" >

<script src="js/jquery-1.11.3.js" type="text/javascript"></script>
<script src="js/common.js"></script>

<title></title>
</head>

<body>
<div class="business_top">
	<div class="business_top-middle">
	    	<div class="business_top-logo">
	        	<a href="?app=default" title='商家首页'>
	            	<img src="images/logo02.png"/>
            	</a>
        </div>
    </div>
    
</div>
<div class="clear4"></div>
<!--中间-->
<div class="business_login-center">
	<div class="business_login-center-middle">
    	<div class="clear1"></div>
        
    	<div class="business_login-center-middle-title">
        	<span>
            	商家登录
            </span>
        </div>
        
        <div class="clear2"></div>
        
		<form id="from" method='post'>
        <div class="business_login-center-middle-form">
        	<div class="business_login-center-middle-form-number">
            	<div class="business_login-center-middle-form-number-input">
                    
                	<input type="text" name='user_name'  placeholder='手机号码'/>
                </div>
                
                <div class="business_login-center-middle-form-number-a">
                	<a href="<%=path %>/toRegister.do">
                    	无账号，我想合作
                    </a>
                </div>
                
                <div class="clear"></div>
            </div>
            
            <div class="clear2"></div>
            
            <div class="business_login-center-middle-form-password">
            	<div class="business_login-center-middle-form-password-input">                    
					 <input name="password" type="password" placeholder='密码' required />
			   </div>
                
                <div class="business_login-center-middle-form-password-a">
                	<a href="<%=path %>/toFindPwd.do">
                    	忘记账号或密码？
                    </a>
                </div>
                
                <div class="clear"></div>
            </div>
            
            <div class="clear4"></div>
            
            <div class="clear"></div>
            
            <div class="business_login-center-middle-form-sub">
            	<input type="button" value="登录" onclick="login()"/>
            </div>
        </div>
        </form>
		
        <div class="clear3"></div>
    </div>
    
    <div class="clear2"></div>
</div>
<!--中间end-->


<div class="clear2"></div>

<script type="text/javascript">

	var _serviceURL='/69mark';

	function login() {
		$.ajax({
			  type : "POST",
				url : _serviceURL+"/toMerLogin.do",
				cache : false,
				data:$('#from').serialize(),
				dataType : 'json',
				success : function(data) {
					if (data == "1") {
						window.location.href=_serviceURL+"/merchant/toJump.do";
					}else{
						alert('账号或密码错误');
					}
				}
		  })
	}
</script>

<!--底部-->
<div class="business_foot">
	<jsp:include page="lbi/merFooter.jsp"></jsp:include>
</div>
<!--底部end-->

<div class="clear8"></div>
</body>
</html>
